package com.forenow.demo.demo14;

public class Circle implements  ShapePara {
    public double radius;
    private double x;  //表示圆心的横坐标
    protected double y;  //表示圆心的纵坐标
    public Circle(double radius){
        this.radius=radius;
    }

    public Circle() {
    }

    public void setCenter(double x, double y){
            this.x=x;
            this.y=y;
    }
    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public double getArea() {
        double area=3.1415*this.radius*this.radius;
        return area;
    }

    @Override
    public int getCircumference() {
        return 0;
    }

    @Override
    public int getArea(int a, int b) {
        return a*b;
    }
}
